/**
 * 业务多维度热力图
 */
import request from '@/utils/request';

// 时段热力图查询
export function getHourHeatmap(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/analysis/hourHeatmap/getMap',
		method: 'get',
		params: query,
	});
}
// 时段热力图数据下载
export function downloadHourHeatmap(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/analysis/hourHeatmap/download',
		method: 'post',
		data: data,
		responseType: 'blob',
	});
}

// 月度热力图查询
export function getMonthHeatmap(query: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/analysis/monthHeatmap/getMap',
		method: 'get',
		params: query,
	});
}
// 月度热力图数据下载
export function downloadMonthHeatmap(data: any): ApiPromise<ApiResponse> {
	return request({
		url: '/business-monitor/analysis/monthHeatmap/download',
		method: 'post',
		data: data,
		responseType: 'blob',
	});
}
